package com.chen.blue.service.system;

import com.chen.blue.domain.delete.system.DeptDelete;
import com.chen.blue.domain.delete.system.PostDelete;
import com.chen.blue.domain.dto.system.DeptDto;
import com.chen.blue.domain.dto.system.PostDto;
import com.chen.blue.domain.dto.system.update.DeptDtoEdit;
import com.chen.blue.domain.dto.system.update.PostDtoEdit;
import com.chen.blue.domain.model.system.PostModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.blue.domain.query.system.DeptQuery;
import com.chen.blue.domain.query.system.PostQuery;
import com.chen.blue.domain.vo.system.DeptVo;
import com.chen.blue.domain.vo.system.PostVo;
import com.chen.blue.exception.e.DtoNullException;
import com.chen.blue.result.DataResult;

import java.util.List;

/**
 * <p>
 * 岗位信息表 服务类
 * </p>
 *
 * @author CLT
 * @since 2024-05-10
 */
public interface IPostService extends IService<PostModel> {

    /**
     * 添加岗位
     *
     * @param postDto
     * @return
     * @throws DtoNullException
     */
    boolean addPost(PostDto postDto) throws DtoNullException;

    /**
     * 删除岗位
     *
     * @param postDelete
     * @return
     * @throws DtoNullException
     */
    boolean deletePost(PostDelete postDelete) throws DtoNullException;

    /**
     * 修改岗位
     *
     * @param postDtoEdit
     * @return
     * @throws DtoNullException
     */
    boolean updatePostById(PostDtoEdit postDtoEdit) throws DtoNullException;

    /**
     * 多条件查询岗位
     *
     * @param postQuery
     * @return
     * @throws DtoNullException
     */
    DataResult<List<PostVo>> queryPost(PostQuery postQuery) throws DtoNullException;

    /**
     * 根据ID查询岗位
     *
     * @param id
     * @return
     * @throws DtoNullException
     */
    DataResult<PostVo> queryPostById(Long id) throws DtoNullException;

}
